package com.tanhua.dubbo.api;

import com.tanhua.model.enums.CommentType;
import com.tanhua.model.mongo.Comment;

import java.util.List;

public interface CommentApi {

    //根据动态id分页查询评论列表
    List<Comment> findComments(String movementId, CommentType comment, Integer page, Integer pageSize);

    //通用的互动数据保存方法
    Integer save(Comment newComment);

    boolean hasMovement(String movementId, Long userId, CommentType comment);

    Integer remove(Comment comment);

    Integer updateComment(Comment comment);

    Integer removeComment(Comment comment);

    Integer updateVideo(Comment comment);

    Integer removeVideo(Comment comment);
}
